<?php 
session_start(); 
define('FLYCMS' , '0.001'); 
include("./admin/functions.php");
include_once("./admin/config.php"); 
include_once('./admin/others/classes/build_template.php'); 
include_once('./admin/others/classes/mysql.class.php'); 
$tpl = new template; 
$sql = new mysql; 
$cms = new cms; 
$tpl -> load();

if (isset( $_REQUEST['id'])) {
		$cms -> browse_news(); 
} else{ 	$cms -> cat_news(); } 
$tpl -> print_tpl();
?>
